package day09test;

public class Chick extends Animal {
    public Chick() {
        super();
        System.out.println("我是儿子");
    }

    public Chick(String name, String age, String color) {
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println("鸡在吃小米");
    }

    public  void layEggs() {
        this.Eggs();
        System.out.println(getColor() + getAge() + "岁的鸡" + getName() + "在下蛋");
    }

    public  void Eggs() {
        this.eat();
        System.out.println(getColor() + getAge() + "岁的鸡" + getName() + "在下蛋");
    }
}
